package com.second.app.mapper;

import com.second.app.entity.Example;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import javax.validation.constraints.Past;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 1542365144@qq.com
 * @since 2024-04-20
 */
public interface ExampleMapper extends BaseMapper<Example> {


    @Select("SELECT * FROM example WHERE id = #{id} FOR UPDATE")
    Example selectForUpdateById(@Param("id")Long id);

}
